﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="expertVote.aspx.cs" Inherits="BOH.Interview.expertVote" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../style/css.css" type="text/css" rel="Stylesheet" />

    <script src="../js/jquery-1.3.2.js" type="text/javascript"></script>

    <script src="../js/common.js" type="text/javascript"></script>
    <script>
        function checkSearch() {
            var drpSubject = $("#<%=drpSubject.ClientID %>");
            if (drpSubject.val() != "-1") {
                return true;
            }
            else {
                alert("请选择查询条件");
                return false;
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="divNavigation">
        当前位置:<a href="OverView.aspx" target="frameControl">评审</a> >> 高评专家投票
    </div>
    <div id="bodyDiv">
        <div id="divSearch">
            <center>
                <table width="98%" class="Grid">
                    <tr>
                        <td align="right" style="width: 120px;">
                            申报学科组
                        </td>
                        <td align="left" style="width: 220px;">
                            <asp:DropDownList ID="drpSubject" runat="server">
                            </asp:DropDownList>
                        </td>
                        <td  align="center"><asp:Button ID="butResearch" runat="server" Text="查询" OnClientClick="return checkSearch()" Width="80px" OnClick="butResearch_Click" /></td>
                    </tr>
                </table>
                <br />
                <table width="98%" class="Grid">
                    <tr>
                        <td align="right" style="width: 120px;">
                            应到专家人数
                        </td>
                        <td align="left" style="width: 180px">
                            <asp:TextBox ID="txtrequired" runat="server" Width="100px"></asp:TextBox>
                        </td>
                        <td align="right" style="width: 120px;">
                            实到专家人数
                        </td>
                        <td align="left">
                            <asp:TextBox ID="txtactual" runat="server" Width="100px"></asp:TextBox>
                            <span style="text-align:right; padding-left:120px;"><asp:Button ID="SaveAll" 
                                    runat="server" Text="保存全部" onclick="SaveAll_Click" /></span>
                        </td>
                    </tr>
                </table>
            </center>
        </div>
        <div id="divGrid">
            <asp:GridView ID="ApplyViewVoteList" runat="server" AutoGenerateColumns="False" 
                CssClass="Grid" 
                onrowcancelingedit="ApplyViewVoteList_RowCancelingEdit" 
                onrowediting="ApplyViewVoteList_RowEditing" 
                onrowupdating="ApplyViewVoteList_RowUpdating" 
                onrowcommand="ApplyViewVoteList_RowCommand">
                <%--<PagerSettings Mode="NumericFirstLast" />AllowPaging="True" PageSize="15" --%>
                <Columns>
                    <asp:TemplateField HeaderText="投票">
                        <ItemStyle Width="50px" />
                        <HeaderStyle Width="50px" />
                        <ItemTemplate>
                            <a href="singleapplyVote.aspx?ApplyID=<%#Eval("ApplyID") %>&EvaluationType=G" target="_blank">投票</a>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:ButtonField ButtonType="Button" CommandName="save" HeaderText="保 存" Text="保 存" HeaderStyle-Width="50px" ItemStyle-Width="50px" />
                    <%--<asp:CommandField HeaderText="编 辑" CancelText="取消" EditText="编辑" UpdateText="更新"
                        ButtonType="Button" ShowEditButton="True" ShowHeader="True"  HeaderStyle-HorizontalAlign="Center" HeaderStyle-Width="120px" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="120px"/>--%>
                    <asp:TemplateField HeaderText="评审编号" HeaderStyle-Width="80px" HeaderStyle-HorizontalAlign="Center">
                        <ItemTemplate>
                            <asp:HiddenField ID="hiddenResultID" runat="server" Value='<%#Eval("ResultID") %>' />
                            <asp:HiddenField ID="HiddenApplyID" runat="server" Value='<%#Eval("ApplyID") %>' />
                            <asp:Label ID="labPrintNo" runat="server" Text='<%# Eval("ApplyPrintID") %>'></asp:Label>
                        </ItemTemplate>
                        <HeaderStyle HorizontalAlign="Center" Width="110px"></HeaderStyle>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="姓 名" HeaderStyle-Width="80px" HeaderStyle-HorizontalAlign="Center">
                        <ItemTemplate>
                            <asp:Label ID="LabAppName" runat="server" Text='<%#Eval("Apply_Name") %>'></asp:Label>
                        </ItemTemplate>
                        <HeaderStyle HorizontalAlign="Center" Width="80px"></HeaderStyle>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="申报职称" HeaderStyle-Width="150px" HeaderStyle-HorizontalAlign="Center">
                        <ItemTemplate>
                            <asp:Label ID="labJobRanks" runat="server" Text='<%#Eval("JobRank") %>'></asp:Label>
                        </ItemTemplate>
                        <HeaderStyle HorizontalAlign="Center" Width="150px"></HeaderStyle>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="同意" HeaderStyle-Width="70px" HeaderStyle-HorizontalAlign="Center">
                        <ItemTemplate>
                            <asp:TextBox ID="txtAgree" runat="server" Width="55px" Text='<%#Eval("AgreeNumber") %>'></asp:TextBox>
                        </ItemTemplate>
                        <%--<ItemTemplate>
                            <asp:Label ID="labAgree" runat="server" Text='<%#Eval("AgreeNumber") %>'></asp:Label>
                        </ItemTemplate>--%>
                        <HeaderStyle HorizontalAlign="Center" Width="60px"></HeaderStyle>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="不同意" HeaderStyle-Width="70px" HeaderStyle-HorizontalAlign="Center">
                        <ItemTemplate>
                            <asp:TextBox ID="txtDeny" runat="server" Width="55px" Text='<%#Eval("DenyNumber") %>'></asp:TextBox>
                        </ItemTemplate>
                        <%--<ItemTemplate>
                            <asp:Label ID="labDeny" runat="server" Text='<%#Eval("DenyNumber") %>'></asp:Label>
                        </ItemTemplate>--%>
                        <HeaderStyle HorizontalAlign="Center" Width="60px"></HeaderStyle>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="弃权" HeaderStyle-Width="70px" HeaderStyle-HorizontalAlign="Center">
                        <ItemTemplate>
                            <asp:TextBox ID="txtAbstrain" runat="server" Text='<%#Eval("AbstrainNumber") %>'
                                Width="55px"></asp:TextBox>
                        </ItemTemplate>
                       <%-- <ItemTemplate>
                            <asp:Label runat="server" ID="labAbstrain" Text='<%#Eval("AbstrainNumber") %>'></asp:Label>
                        </ItemTemplate>--%>
                        <HeaderStyle HorizontalAlign="Center" Width="70px"></HeaderStyle>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="备注" HeaderStyle-HorizontalAlign="Center">
                        <ItemTemplate>
                            <asp:TextBox ID="txtRemark" TextMode="MultiLine" runat="server" Height="18px" Rows="1" Text='<%# Eval("comment") %>'
                                Columns="15"></asp:TextBox>
                        </ItemTemplate>
                        <ItemStyle CssClass="" />
                        <%--<ItemTemplate>
                            <asp:Label ID="labRemark" runat="server" Text='<%#Eval("comment") %>'></asp:Label>
                        </ItemTemplate>--%>
                        <HeaderStyle HorizontalAlign="Center" Width="60px"></HeaderStyle>
                    </asp:TemplateField>
                    
                </Columns>
            </asp:GridView>
            <div id="divPager">
                <asp:Label ID="labNoRecord" Visible="false" runat="server" Text="查询结果为空!"></asp:Label>
                <%--<webdiyer:AspNetPager ID="AspNetPager1" runat="server" PageSize="15" AlwaysShow="True"
                    OnPageChanged="AspNetPager1_PageChanged" ShowCustomInfoSection="Left" CustomInfoSectionWidth="30%"
                    ShowPageIndexBox="always" PageIndexBoxType="DropDownList" CustomInfoHTML="第<font color='red'><b>%currentPageIndex%</b></font>页，共%PageCount%页，每页显示%PageSize%条记录">
                </webdiyer:AspNetPager>--%>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
